package com.turbo.cloud.ods.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.turbo.cloud.core.base.PageQuery;
import com.turbo.cloud.ods.web.entity.DynamicQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 动态查询SQL Mapper 接口
 * </p>
 *
 * @author zhangluning
 * @since 2024-08-07
 */
@Mapper
public interface DynamicQueryMapper extends BaseMapper<Object> {

    /**
     * 动态SQL分页列表
     *
     * @param pageQuery 分页实体
     * @return Page
     */
    @Select("${pageObsQuery.param.sqlStr}")
    Page<Map<String, Object>> dynamicQueryPage(@Param("pageObsQuery") PageQuery<HashMap<String, String>> pageQuery);

}
